Corrected iteration bounds in 'fasta_write'