It is unlikely that Ray Allen plays for Miami.
He is a proud athlete. -was angry at losing his starting job to Avery Bradley. -don't think Spoelstra would change the starting lineup so that Ray doesn't come off the bench.
If he's also looking to maximize his contract size, then Boston is the obvious choice as per the article:
Source: Heat, Clips, Grizz Pursuing Allen « NBA.com | Hang Time Blog
T
he Heat can only offer Allen their mini mid-level exception that starts at $3.09 million next season, the same exception Miami used last year to sign free-agent forward Shane Battier. The Clippers have their full mid-level available at $5 million. Boston has offered Allen a two-year deal for $12 million.