Disk allocation algorithm - refactoring

This pull-request fix bug which I have found in https://github.com/crowbar/barclamp-ceph/pull/45

I improved disk allocation algorithm and I did refactoring