I could not find anything in Drug.com's list to suggest that an allergy to Ibuprofen should translate to an allergy to tramadol. They both have different active ingredients and the webpage gives no warnings about interactions with Ibuprofen or other NSAID's. This is something, though, you should call up your pharmacist on and find out.
http://www.drugs.com/tramadol.html
Good luck