For some reason, I am not able to write the integers to the file. Rounded them and try to convert them to byte before writing them on the file