wal: sync after writing data to disk in Cut function

fixes #1840