Remove dirty buffers after writing when immediate_commit is on instead of saving them for repeating later