applypatch: Fix mismerge from 4.4.3 in writeToPartition

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>