override intputstream /outputstream read and write for byte buffers

it is going to be faster since it won't hammer read(int) and write(int) as much