Inflict wounds/damage spells should be treated AS damage spells and get damage dice appropriate to damaging spells. Split the spells into two halves, like this:
Against foe: 1d6+2 damage per caster level, up to max level of spell
Against friend: 1d6+2, +1 per caster level, up to max level of spell