Random access file write for Android