[test_zfile] fix up memory bugs in test_zfile
[test_seqfile] fix memory bugs in test_seqfile
[kmseqfile] implement write_seq & tests