Remove old comments and refactor alloc_cb

Increment the allocated position(apos) instead of using 'ssize' and set buf->len
to 1. This is just to improve readability since using 'ssize' didn't make it
clear to readers that the 'allocated' buffer size is always 1.