add const to fastq writing func