Write StudentRecord changes to students.txt file