simplify get HdfsInputStream logic in HdfsFileInputStream

simplify get HdfsInputStream logic in HdfsFileInputStream, add two functions to replace reused code.
submit another PR for it:
https://github.com/amplab/tachyon/pull/591