StoreWAL: fix #198, incorrect handling of prealloc recid