implement write NFC tag function