Update encode.c

added b_skip(size), but think that b_alloc needs to be added as well