fix bb_put_bytes

bb_put_bytes and bb_put_bytes_at has bug in loop
Merge pull request #1 from CandySunPlus/master

fix bb_put_bytes and bb_put_bytes_at. Thank you CandySunPlus!!