Can they write a new law against this act?
Can who? Congress? Probably not. Seperation of Powers. Also, the new Raich ruling on the Commerce Clause could be used to over-rule any lower State or Local statute used t otry and combat this ruling.
Do you mean can these kinds of takings be stopped despite the Supreme Court's decision? Absolutely! Of course!
The Supreme Court didn't say states and local governments (including municipalities) MUST do what was done here, only that the Fifth Amendment doesn't prohibit it. Concerned citizens need to get to work immediately and take every reasonable step to prevent their states and local governments from taking advantage of this decision. They should start by examining their own state laws and constitutional provisions.
Some states already have stringent constitutional prohibitions or legislation in place that would prevent what happened in Connecticut. If your state isn't such a state, start pushing your state representatives HARD to make it one.