write SNP file