another version of BetterWrite that flushes continously

Proposed by http://levin-matveev.livejournal.com/85601.html?thread=694113#t694113