Testing for EOF is only done when reading. When you write file it is always at the end of file when you open a file for output and print to it.
910 open "bank.txt" for output as #1
920 for index2 = 1 to 10
930 print #1, data$(index2)
940 next index2
960 close #1