flush cdf file after writing times