Method in a first node for allocating resource blocks to at least one second node (120, 130) within a wireless communication network, the second node (120, 130) is adapted for wireless communication with the first node over a channel by sending data comprised within the allocated resource blocks, the method comprises the steps of: generating candidate Signal to Interference and Noise Ratio target values, estimating received signal power of the at least one second node (120, 130), based on measurements made on a signal received from the at least one second node (120, 130), computing the number of resource blocks, possible to allocate to the at least one second node (120, 130), for each generated candidate Signal to Interference and Noise Ratio target value, based on the estimated received signal power of the at least one second node (120, 130), selecting a Signal to Interference and Noise Ratio target value out of the candidate Signal to Interference and Noise Ratio target values, allocating the computed number of resource blocks to the at least one second node (120, 130) for the selected Signal to Interference and Noise Ratio target value, the method is characterized in that the number of generated candidate Signal to Interference and Noise Ratio target values is based on the number of available resource blocks, and wherein the step of selecting a Signal to Interference and Noise Ratio target value is based on a given optimization criterion; and the step of allocating the computed number of resource blocks to the at least one second node (120, 130) for the selected Signal to Interference and Noise Ratio target value further comprises: determining if there is more data for the second node (120, 130) to allocate, and if so: determining if a resource block adjacent to the allocated resource block is available, if the adjacent resource block is occupied: computing if the second node (120, 130), occupying the resource block can be shifted without reducing the total number of bits to be transmitted, and if so, shifting resource block for that second node (120, 130). generating candidate Signal to Interference and Noise Ratio target values, estimating received signal power of the at least one second node (120, 130), based on measurements made on a signal received from the at least one second node (120, 130), computing the number of resource blocks, possible to allocate to the at least one second node (120, 130), for each generated candidate Signal to Interference and Noise Ratio target value, based on the estimated received signal power of the at least one second node (120, 130), selecting a Signal to Interference and Noise Ratio target value out of the candidate Signal to Interference and Noise Ratio target values, allocating the computed number of resource blocks to the at least one second node (120, 130) for the selected Signal to Interference and Noise Ratio target value, the method is characterized in that the number of generated candidate Signal to Interference and Noise Ratio target values is based on the number of available resource blocks, and wherein the step of selecting a Signal to Interference and Noise Ratio target value is based on a given optimization criterion; and the step of allocating the computed number of resource blocks to the at least one second node (120, 130) for the selected Signal to Interference and Noise Ratio target value further comprises: determining if there is more data for the second node (120, 130) to allocate, and if so: determining if a resource block adjacent to the allocated resource block is available, if the adjacent resource block is occupied: computing if the second node (120, 130), occupying the resource block can be shifted without reducing the total number of bits to be transmitted, and if so, shifting resource block for that second node (120, 130). determining if there is more data for the second node (120, 130) to allocate, and if so: determining if a resource block adjacent to the allocated resource block is available, if the adjacent resource block is occupied: computing if the second node (120, 130), occupying the resource block can be shifted without reducing the total number of bits to be transmitted, and if so, shifting resource block for that second node (120, 130). computing if the second node (120, 130), occupying the resource block can be shifted without reducing the total number of bits to be transmitted, and if so, shifting resource block for that second node (120, 130).