You can't exactly unpatch a rom, but you can always just redownload or redump the rom, wherever you got it from.
Actually, many patch files out there generate a ".bak" file, which is actually the original unpatched rom with a different file extension, if you kept that somewhere rename it to .nds.