wal: record node id at the head of WAL file