mockfs.storage: Fix writing in an invalid path

raise IOError when trying to write a file in a directory that does not
exist.

Signed-off-by: Jordi Carrillo <jordilin@gmail.com>
Merge pull request #1 from jordilin/master

Fix writing to a non-existent path.