Greek party leaders have sent written commitments to Brussels saying they will stick to the agreed austerity measures even after the general elections in April.