As far as I know, there's no way to save a MIDI file from an attachment. That option isn't built into the current operating system.
You can, however, upload a MIDI file to a website and install it over-the-air. You don't even have to write a WML or HTML page around it. Just upload the file, enter the URL for the file into your BlackBerry browser, and the browser will take it from there.