A cartridges stores a ROM, which means read-only memory, so you can't overwrite what's already written (except for the save part but this won't change your game) so you have to either install the patch using Luma3DS LayeredFS feature or patch a .cia and then install it.