For some reason, it seems the “best” way, is to write your NUID First, then the NDEF data, the other way around seems to fuck shit up.
I would suggest you take a copy of your data, the do a practice write on a test card first.
Remember, not all phones will recognise the NDEF data on a Magic Mifare card.
Anyway, that’s my experience. Hope that helps