added write function
latest todo.txt file