Fix and write byte argument improvement

parseBuffer fix, on separatorBuffer
byte in write is checked and size is updated accordingly