fix not writing last vector and flush to file
Merge pull request #55 from shulhi/bugfix/hadoopri-inputformat

Setting `inputFormat` to TEXT or SPARSE_TEXT doesn't write to file (Hadoop RI)