Added blocking writes to the File driver.
renamed variable.
Merge pull request #1459 from Martynas-P/master

Added blocking calls to the File driver.