fixed write.vcf
fixed write.vcf (still get a warning though)