wal: cut(i uint64) -> cut

/cc @philips @jonboulle @unihorn 
index of the last entry saved to the wal