Memphis is over the cap. They would have to send salary back; we cannot use them to generate a TE for ourselves.
Edit: However, if Chicago is still under the cap, then Memphis could sign and trade Brewer to them, creating a TE that ought to be large enough to absorb Allen's new deal.