In VOF you have single temperature equation so the weighting with volume fraction would only make sense for interracial cells (from one to N cells depending on the scheme). Your UDF is wrong.

What would you suggest to solve the problem of heating source in one fluent in a 2 phase model?