efi: Handle deletions and size changes in efivarfs_write_file