Radix sort: fix typo in write_to_file func