improve write manners(when write to a bound that unallocated.)
Merge pull request #19 from shenyan1/file_write

improve write manners(when write to a bound that unallocated.)