Fix #6:correct allocation size of WriteAll on Windows(TRY2)

modify allocation size which was too large.