wal: cut(i uint64) -> cut

/cc @philips @jonboulle @unihorn 
That is because we have not written entry 0 to disk. 
And we need to prevent cut an empty file too.
And i am going to change that in the pull request.