set Key and parentKey in createWriteValue