wal: cut(i uint64) -> cut

/cc @philips @jonboulle @unihorn 
set the initial value of `enti` to be -1?