write output sam file without the header