What I do where a building contains multiple apartments is to tag it with addr:housenumber or addr:housename to indicate the address of the block, and then add addr:flatnumber to indicate which apartment numbers exist in the building. So you would have something like:
addr:street=Foo Street
addr:housenumber=25
addr:flatnumber=1-6
or, if the block is named:
addr:street=Bar Street
addr:housename=Baz House
addr:flatnumber=1-25
I think the wiki also has a tag for specifying how to interpolate the flat numbers if the block only contains odd or even numbers.numbers.