[SPARK-2671] BlockObjectWriter should create parent directory when the directory doesn't exist