Ok how about imagine that friend was stalker. Someone potentially dangerous to me and those around me. They know we live in the same building so yes in that case it would make perfectly sense that I could compel you not to give away your address to that person.
imo that's only reasonable if we're actually roommates. if not, you should pursue a restraining order against this person, not try to restrict me from releasing my own address.