I have not seen any information that would suggest that there is not an energy gain with biodiesel. This is in contrast to ethanol, for which there is a significant amount of discussion out there which suggests just the distillation alone creates a negative energy balance.
But remember, it takes energy to refine and blend petroleum fuels too. There's also potentially a lot more transportation involved in getting it to the end user.