fix InputStream offset bug

ThreadSafeInputStream read方法bug