Refine updateAllocation(), addWriter(). Remove redundant getMemoryPoolRatio