writes values to data.txt file