wal: cut(i uint64) -> cut

/cc @philips @jonboulle @unihorn 
that is not correct. enti should be the index of last written entry (0 if nothing has been written).
if you end up with loading nothing, then probably you give the wrong index...