i/o stream flush