wal: sync after writing data to disk in Cut function