Fix writing to external sdcard

Change-Id: Iab941732cf2c65fdfc6d6f838badd24cd16037c5
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_motorola_msm8960-common into cm-11.0