Mariga agrees to Sociedad loan