Partially crystallized BaM thin films for high density magnetic recording