As far as I know, FLUSH FILE.VI doesn't help at all. This is good just when you want to have the data in the file (physically) and a directory entry updated for it rather than waiting in a buffer (maybe another VI/application require data in that file as soon as possible).
Anyway, it would be helpful if you can post that VI or a simulation with the same behavior. Thus, maybe somebody can find a solution easier.