use new bgzf class for bam file writing