Allen’s monster jam sparks Nets' victory