Writing to NBT