Balanced collective contributions, the equal allocation of non-separable costs and application to data sharing games