quick fix for fastq writing (cache output filehandles)

This quick fix solves the issue of opening a fastq, writing one read,
and closing it (which causes major problems on network disk). It could,
however, cause the program to run out of file descriptors if the number
of fastq files is large.  Something more robust is coming soon.