add flushing of blocks so that this time is taken into account in the download rate, so that the download doesn't get too far ahead on slow disks