Add writeEntry method to BundleStorage and further implement installBundleLocked method in PiFramework