use dsbuff to break apart the rom, decompress the overlay with blz, change what you need to change(without making the overlay bigger), recompress with blz, rebuild with dsbuff
if all you're doing is changing game ids, you aren't making the overlay any bigger.