Writing the suit (OS) number on the building has no legal effect, and the builder erasing it is not, by itself, a serious offence, though it may be mischief. What protects you is the pending suit: under Sec 52 of the Transfer of Property Act, 1882 (lis pendens), any sale of the flat by the builder during the suit is subject to the decree, and in some States you can register a notice of lis pendens with the Sub-Registrar. You can also apply in the suit for a temporary injunction restraining the builder from selling or creating third-party rights in the flat. Inform any prospective buyer in writing about the pending suit if you learn of one.