now writing genome.stats file on 'write'