Tweak Update the writeData() method in the Data component