writable-tracking-buffer: fix buffer allocation